//简历附加信息
import React, { Component } from 'react'
import {
    View,
    Text,
    TouchableOpacity,
} from 'react-native';

import { resumeeightStyle as styles } from '../../../../../styles';
import Icon from 'react-native-vector-icons/Ionicons';


export default class Resumeattach extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        return (
            <View style={styles.eightall}>
                <View style={styles.ninesp}>

                    <Text style={styles.eighttop}>附加信息</Text>
                    <View style={styles.eightallin}>
                        <Text style={styles.eightev3}>{this.props.resume.filed2}</Text>
                    </View>

                    <TouchableOpacity style={styles.touch} activeOpacity={1}
                        onPress={() => { this.goGet('Attach', this.props.resume, this.props.actions) }}
                    >
                        <Icon
                            name={'md-create'}
                            size={16}
                            color={'#3d9ccc'}
                        />
                    </TouchableOpacity>
                </View>

                {this.props.resume.filed2 == null ?
                    <TouchableOpacity style={styles.eightbot} activeOpacity={1}
                        onPress={() => { this.goGet('Attach', this.props.resume, this.props.actions) }}
                    >
                        <Icon
                            name={'md-add'}
                            size={20}
                            color={'#3d9ccc'} style={styles.eighticonb2} />
                        <Text style={styles.eighttxt1}>添加附加信息</Text>
                    </TouchableOpacity>
                    :
                    null
                }
            </View>

        )
    }
    goGet(name, resume, actions) {
        this.props.navigation.navigate(name, { xzresume: resume, actions: actions });
    }
}